import request from '@/common/request.js'
import { formatGetUri } from '@/common/util.js'

const api = {};
const GOODS = 'goods';
const COLLEGE = 'college';
const HOME = 'home';
//商学院首页列表
api.collegelist = params => request.globalRequest(`${COLLEGE}/list`, 'POST', params, 1)
//通用广告接口
api.homejd = params => request.globalRequest(`${HOME}/jp`, 'POST', params, 1)
//具体的内容
api.college_detail = params => request.globalRequest(`${COLLEGE}/collegedetail`, 'POST', params, 1)


// GET请求方式
//api.homeindex = params => request.globalRequest(`${PORT1}/index${formatGetUri(params)}`, 'GET',{}, 1)
export default api